<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf8" />
<title></title>
    <link rel="stylesheet" href="<?php echo STATICURL; ?>css/bootstrap.min.css" />
    <script src="<?=STATICURL; ?>js/jquery.min.js"></script>
</head>
<body style="background: #eeeeee;">
    <div class="widget-content" >
        <table class="table" style="margin-top: 20px;">
            <tbody>
            <tr>
                <td>活动名称</td>
                <td><input id="paperTitle" style="width: 320px;" type="text" value="<?=$examInfo['paperTitle']?>"  placeholder="请输入活动名称"/><input type="hidden" name="examID" id="examID" value="<?=$examInfo['paperID']?>"></td>
            </tr>
           
            <tr>
                <td style="border-right: 0;">&nbsp;</td>
                <td style="border-left: 0;"><a style="float:left" type="submit" class="js_btn btn btn-success" href="javascript:void(0)" id="edit_manager">提交</a></td>
            </tr>
            </tbody>
        </table>
    </div>
</body>
<script src="<?=STATICURL; ?>js/wdatepicker/WdatePicker.js"></script>
<script src="<?php echo STATICURL; ?>layer/layer.js"></script>
<script type="text/javascript">
</script>
<script type="text/javascript">
    $(document).ready(function(){
        $("#edit_manager").click(function(){
            var paperTitle = $("#paperTitle").val();
            var id ="<?=$examInfo['paperID']?>";
            if(paperTitle == '')
            {
                layer.msg("活动名称不能为空");
                return false;
            }
            
            $.post("/luckydog/examination/edit",{"paperTitle":paperTitle,id:id},function(res){
                if (res) {
                    layer.msg('成功');
                    window.parent.location.reload();
                }
            });
        });
    });
</script>